<?php 
$key = $_GET['key'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>作业提交审查管理系统注册 Powered By 江西理工大学 信息工程学院 软件081班</title>

<style type="text/css">
<!--
.textFile1 {						width:200px;
						height:20px;
						border:1px solid #39F;
						text-align:left;
						margin-bottom:5px;
						color:#39F;}
.textFile1 {						width:200px;
						height:20px;
						border:1px solid #39F;
						text-align:left;
						margin-bottom:5px;
						color:#39F;}
						select{
							font-size:12px;}
-->
</style>
<script type="text/javascript">
function changeButton(obj,image)
{
obj.style.backgroundImage = image;

	}
	function checkValue()
	{
		var pwd = document.getElementById('pwd').value;
		var pwdAgain  = document.getElementById('pwdAgain').value;
		var validata  = document.getElementById('validata').value;
		if(pwd=="")
		{
			alert("请输入密码！");
			document.getElementById('pwd').focus();
			}
			else if(pwd.length>6)
			{
				alert("密码必须大于六位！");
				document.getElementById('pwd').focus();
				}
				else if(pwd!=pwdAgain)
				{
					alert("两次输入的密码不一样！");
					document.getElementById('pwdAgain').focus();
					}
					else if(validata=="")
					{
						alert("请输入验证码！");
						document.getElementById('validata').focus();
						}
						else 
						{
							document.getElementById('resetForm').submit();
							}
		}
		function changeimage()
{
document.getElementById("safecode").src='admin_core/utils/validate_code.php?time'+Math.random();
}
</script>
</head>
<style type="text/css">
#main{
	width:800px;
	margin:auto;}
	#blank{
		width:800px;
		}
		#form
		{
			width:600px;
			margin:auto;
			height:auto;}
			#head
			{
				background-image:url(images/login_12.gif);
				background-repeat:repeat-x;
				height:97px;
				text-align:center;
				color:#09F;
				font-size:24px;
				font-weight:bolder;
				line-height:97px;
				font-family:"宋体";
				border-left:#CCC 1px solid;
				border-right:#CCC 1px solid;
				}
				.label{
					color:#09F;
					font-size:14px;
					font-family:"幼圆";
					text-align:right;
				}
				table
				{
					
					width:90%;
					margin:auto;}
					.textFile{
						width:200px;
						height:20px;
						border:1px solid #39F;
						text-align:left;
						margin-bottom:5px;
						color:#39F;}
						#top{
							height:7px;}
							#regist{
								border-left:#CCC 1px solid;
				border-right:#CCC 1px solid;
				
			
								}
						
					
</style>
<body>
<div id="main">
<div id="blank">
<div style="height:50px;">
</div>
<div id="form">
<div id="top">
<img src="images/login_07.gif" width="600"/>
</div>
<div id="head">修改密码</div>
<div id="regist">
<form name="regist" id="resetForm"  action="admin_core/helpControl.php?action=resetPWD" method="post" >
<table>
<tr>
<td class="label">登录密码：
</td>
<td align="left" colspan="2">
<input type="password" name="pwd" id="pwd" class="textFile"/>
<input type="hidden" name="key" class="textFile" value="<?php echo $key;?>" />
</td>
</tr>
<tr>
<td class="label">确认密码：
</td>
<td align="left" colspan="2">
<input type="password" name="pwdAgain" id="pwdAgain" class="textFile" />
</td>
</tr>
<tr>
<td class="label">验证码：
</td>
<td align="left">
<input type="text" name="validata" id="validata" class="textFile" style="width:100px;"/></td>
<td>
<img src="admin_core/utils/validate_code.php" id="safecode" style="width:100px; cursor:pointer; height:20px;" onclick="javascript:changeimage();" title="点击换一张"/><span style="cursor:pointer; font-size:14px; color:#666;" onclick="javascript:changeimage();" >看不清！换一张</span>
</td>
</tr>
<tr>
<td align="right">
<input type="button" value=" 修 改 " name="rigist" id="submitid" onclick="checkValue()" onmousemove="changeButton(this,'url(images/61.gif)')" style="background-image:url(images/40.gif); width:65px; height:23px; border:0px;"  onmouseout="changeButton(this,'url(images/40.gif)')" />
</td>
<td colspan="2">
<input type="reset" value=" 重 置 " name="reset" onmousemove="changeButton(this,'url(images/61.gif)')" style="background-image:url(images/40.gif); width:65px; height:23px; border:0px;" onmouseout="changeButton(this,'url(images/40.gif)')"/>
</td>
</tr>
</table>
</form>
</div>
<div style=" height:5px;">
<img src="images/login_46.gif" width="600"  />
</div>
</div>
</div>
</div>
</body>
</html>
